package com.stenio.fancat.domain;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 用户图片表实体类
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("fc_user_image")
public class UserImage extends BaseEntity {

	/** 序列化ID */
	private static final long serialVersionUID = 8915352098644671216L;

	/** 自增主键 */
	@TableId(value = "id", type = IdType.AUTO)
	private Integer id;
	@TableField("user_id")
	private Integer userId;
	@TableField("img_type")
	private Integer imgType;
	@TableField("image")
	private byte[] image;

	public static final String USER_ID = "user_id";
	public static final String IMG_TYPE = "img_type";

}